<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<meta name="SiteName" content="北京市人力资源和保障局门户网站">
	<meta name="SiteDomain" content=" rsj.beijing.gov.cn">
	<meta name="SiteIDCode" content="1100000062">
	<meta name="ColumnName" content="最新招聘信息">
	<meta name="ColumnType" content="机构职能">
	<meta name="ColumnDescription" content="最新招聘信息列表展示">
	<meta name="ColumnKeywords" content="单位行业,岗位类别">

	<meta name="ArticleTitle" content="事业单位招聘信息及岗位发布">
	<meta name="PubDate" content="2020-08-10 16:00">
	<meta name="ContentSource" content="北京市职业介绍服务中心">
	<meta name="description" content="最新招聘信息岗位详情">
	<meta name="keywords" content="发布日期,企业规模,单位性质,单位行业,单位地址,岗位描述,工作地点">
	<title>岗位详情</title>
	<link rel="stylesheet" href="./styles/css/common.css">
	<style>
		#allmap {
			width: 100%;
			height: 100%;
		}

		._m_label {
			padding: 7px 10px;
			border: 1px solid #fff;
			border-radius: 20px;
			background-color: #ffffff;
			box-shadow: 0 0 5px #dccdcd;
			position: relative;
		}

		._m_label:after {
			content: '';
			height: 0px;
			width: 0px;
			border-right: 10px solid transparent;
			border-top: 10px solid #ffffff;
			border-left: 10px solid transparent;
			position: absolute;
			bottom: -11px;
			left: 35px;
			margin: auto;
		}
	</style>
</head>

<body>
	<!-- 公共顶部 -->
	<!-- <include src="./include/top.html"></include> -->
	<script src="http://rsj.beijing.gov.cn/header.js"></script>

	<!-- 头部 -->
	<div class="job_header">
		<div class="job_header_con clearfix">
				<a href="./index.html" class="left">
					<img src="./styles/images/logo.png" alt="">
				</a>
			<span class="left job_fontimg"></span>
		</div>
	</div>
	<!-- 职位详情 nav -->
	<div class="job_nav">
		<div class="job_nav_con clearfix">
			<div class="job_nav_left left">
				<p class="job_com_name"></p>
				<p class="job_name"></p>
				<div class="job_condition">
					<span class="job_money"></span>
					<span class="job_dd"></span>
					<span class="job_qz"></span>
					<span class="job_xl"></span>
				</div>
				<p class="job_time"></p>
			</div>
			<div class="job_nav_right right " id="sqzw">
				申请职位
			</div>
		</div>
	</div>
	<!-- 职位详情 内容-->
	<div class="job_con clearfix">
		<div class="job_con_left left">
			<img class="jobc_img" src="./styles/images/companylogo.png" alt="">
			<p class="jobc_name"></p>
			<div class="qygm job_icon clearfix">
				<i></i>
				<div>
					<span class="job_text_left">企业规模：</span>
					<span class="job_text_right J_qygm"></span>
				</div>
			</div>
			<div class="dwxz job_icon clearfix">
				<i></i>
				<div>
					<span class="job_text_left">单位性质：</span>
					<span class="job_text_right J_dwxz"></span>
				</div>

			</div>
			<div class="dwhy job_icon clearfix">
				<i></i>
				<div>
					<span class="job_text_left">单位行业：</span>
					<span class="job_text_right J_dwhy"></span>
				</div>

			</div>
			<div class="dwdz job_icon clearfix">
				<i></i>
				<div>
					<span class="job_text_left">单位地址：</span>
					<span class="job_text_right J_dwdz"></span>
				</div>

			</div>
		</div>
		<div class="job_con_right right">
			<div class="jobc_gwms">
				<h1 class="gwms_icon">岗位描述</h1>
				<div class="gwms">
				</div>
			</div>
			<div class="jobc_gzdd">
				<h1 class="gzdd_icon">工作地点</h1>
				<p class="jobc_gzdd_p"></p>
				<div class="gzdd_map" style="border:none;">
					<div id="allmap"></div>
				</div>
			</div>
		</div>
	</div>
	<!-- 公共尾部 -->
	<!-- <include src="./include/footer.html"></include> -->
	<script src="http://rsj.beijing.gov.cn/footer.js"></script>
</body>

</html>
<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=http://api.map.baidu.com/api?v=2.0&ak=bzQfIOkTEm8udd851xUT5BnN8lzwm7Gw"></script>
<script src="./common/vendor.js"></script>
<script src="./common/common.js"></script>
<script>
	$(function () {
		// codeTable('jycs_d_jggslxh', $('.list_jggs'), 'result');
		// codeTable('jycs_d_jgmllxh', $('.list_jgxx'), 'mechanism');
		var loading = new $.Loading();
		var dmid = $.paramObj().dmid;
		var zpxxArr = []; //存放招聘信息对象数组
		init();
		// 获取基本信息
		getBase();
		function init() {
			loading.on();
			$.fetch({
				url: '/zxzpxx/xxxx',
				type: 'get',
				data: {
					id: dmid
				},
			}).always(function () {
				loading.off();
			}).done(function (res) {
				var _data = res.returnData;
				if (+_data.executeResult === 1) {
					var _d = _data.data[0];
					zpxxArr = _data.data[0];
					$('.job_com_name').text(_d.zpdwmc);// 公司名称
					$('.job_name').text(_d.gwmc);// 招聘职位
					$('.job_money').text(_d.gwgz);// 工资待遇
					$('.job_dd').text(_d.gzdq);// 地点
					$('.job_qz').text(_d.gwxz);// 全职
					$('.job_xl').text(_d.xlyq);// 学历
					$('.job_time').text('发布日期：' + _d.fbrq);// 发布日期
					$('.jobc_name').text(_d.zpdwmc); //企业名称
					$('.J_qygm').text(_d.qygm); //企业规模
					$('.J_dwxz').text(_d.qyxz); //单位性质
					$('.J_dwhy').text(_d.qyjyfw); //单位行业
					$('.J_dwdz').text(_d.qydz); //单位地址
					$('.gwms').html(_d.gwms) //岗位描述
					$('.jobc_gzdd_p').html(_d.gzdd) //岗位描述
					getMap(_d)
				} else {
					$.layerMsg(_data.message, '我知道了', function () {
						return false;
					});
				}
			});
		}

		// 申请职位
		$(document).on('click','#sqzw',function(){
			var dllx = $.sessionStorageGetItem('dllx') && $.sessionStorageGetItem('dllx').dllx;
			if (dllx) {
				var dlzt = 1;
			} else {
				var dlzt = 0;
			}
			if (dlzt == 0 || dllx == 2) {
				$.layerMsg('请先进行个人登录后，再申请职位', '我知道了', function () {
					return false;
				});
				return
			}
			// 个人登录后
			if(dlzt == 1 && dllx == 1){
					var zpgwid = zpxxArr.zpgwid;
					var dwdjid = zpxxArr.dwdjid;
					window.open('http://fuwu.rsj.beijing.gov.cn/bxjyweb/grhqdwxxZpxx/showGwxx?zpgwid='+zpgwid+'&dwdjid='+dwdjid,'_blank');
			}
		});

		function getMap(_d) {
			var map = new BMap.Map('allmap', { enableMapClick: false });
			//开启鼠标滚轮缩放
			map.enableScrollWheelZoom();
			var myGeo = new BMap.Geocoder();
			//console.log(res)
			var point = new BMap.Point(_d.lng, _d.lat);
				map.centerAndZoom(point, 15);
				var marker = new BMap.Marker(point);
				var opts = {
					position: point,
					offset: new BMap.Size(-48, -67)
				}
				var _html = '<p class="_m_label">' + _d.zpdwmc + '</p>'
				var label = new BMap.Label(_html, opts);
				label.setStyle({
					color: "#666666",
					fontFamily: "微软雅黑",
					border: 'none',
					backgroundColor: 'none'
				});
				map.addOverlay(marker);
				map.addOverlay(label);

		}


		// var opts = {
		// 	padding: '20px',     // 信息窗口宽度
		// 	borderRadius: '50%',    // 信息窗口高度
		// 	title: "提示"  // 信息窗口标题
		// }
		// var _html = '<div class="">北控三兴科技有限公司</div>'
		// var infoWindow = new BMap.InfoWindow(_html);  // 创建信息窗口对象
		// map.openInfoWindow(infoWindow, map.getCenter());      // 打开信息窗口

	});
</script>
